package cn.com.nes.mybatis.agent.ope.mapper;

import cn.com.nes.mybatis.agent.ope.entity.IsEquipmentFunctionDetailInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 功能详情表 Mapper 接口
 * </p>
 *
 * @author nes
 * @since 2023-03-07
 */
public interface IsEquipmentFunctionDetailInfoMapper extends BaseMapper<IsEquipmentFunctionDetailInfo> {

    List<IsEquipmentFunctionDetailInfo> selectByProtocolId(@Param("protocolId") String protocolId);

    void deleteByDataItemId(String dataItemId);

    void deleteByDataItemIds(List<String> dataItemId);

    void insertBatch(@Param("insert") Set<IsEquipmentFunctionDetailInfo> insertControlParams);

    List<IsEquipmentFunctionDetailInfo> getEquipmentFunctionDetailInfo(@Param("manufactureId") String manufactureId,
                                                                       @Param("functionName") String functionName,
                                                                       @Param("protocolId") String protocolId);

    String getFunctionDetailIdByDataItemId(@Param("dataItemId") String dataItemId);
}
